<template>
  <et-card :showHeader="false">
    <div class="flow-center-wrapper">
      <div class="my-todo">
        <div class="todo-wrapper">
          <div class="image-wrapper">
            <et-icon icon="iconfont-mytodo" size="64px" color="#1296db" />
          </div>
          <div class="todo-count">
            <div class="todo-count-text">我的待办</div>
            <div class="todo-count-number">33</div>
          </div>
        </div>
      </div>
      <el-divider direction="vertical" style="height: 100px;" />
      <div class="flow-steps">
        <div class="step-wrapper">
          <et-icon icon="iconfont-mystarted" size="40px" class="step-image" />
          <div class="step-text">我发起的</div>
        </div>
        <div class="step-wrapper">
          <et-icon icon="iconfont-myapproved" size="40px" class="step-image" />
          <div class="step-text">我处理的</div>
        </div>
        <div class="step-wrapper">
          <et-icon icon="iconfont-mycced" size="40px" class="step-image" />
          <div class="step-text">抄送我的</div>
        </div>
        <div class="step-wrapper">
          <!-- <div class="step-text">待办委托</div> -->
        </div>
      </div>
    </div>
  </et-card>
</template>
<script setup lang="ts">
defineOptions({
  name: "MyTasksCard",
});
</script>
<style lang="scss" scoped>
.flow-center-wrapper {
  align-items: center;
  border-radius: 6px;
  display: flex;
  min-height: 160px;
  position: relative;
  width: 100%;

  .my-todo {
    border-radius: 6px;
    height: 100%;
    padding: 20px;
    width: 32%;

    .todo-wrapper {
      align-items: center;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      height: 100%;
      justify-content: center;

      .image-wrapper {
        margin-right: 40px;
        width: 64px;
      }

      .todo-count {
        .todo-count-text {
          font-size: 18px;
          font-weight: 500;
          height: 24px;
          line-height: 24px;
          margin-bottom: 5px;
        }

        .todo-count-number {
          font-size: 36px;
          font-weight: 700;
          height: 36px;
          line-height: 36px;
        }
      }
    }
  }

  .flow-steps {
    border-radius: 6px;
    display: flex;
    height: 100%;
    justify-content: space-between;
    padding: 20px 20px 20px 16px;
    width: 68%;

    .step-wrapper {
      align-items: center;
      border-radius: 12px;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      justify-content: center;
      line-height: 0;
      width: 23%;

      .step-image {
        height: 40px;
        color: #1296db;
        margin-bottom: 16px;
      }
    }
  }
}
</style>
